package com.pisolution.scheduler.runtime.workflow;

/**
 * 当前计算节点超时设置.
 *
 * @author sora
 * @version 0.1.0
 */
public final class Timeout {
    /** 超时策略. */
    private TimeoutStrategy strategy;

    /** 最大运行时长. */
    private int duration;

    // -------------------------------------------------------------------------------------------------
    //  属性访问
    // -------------------------------------------------------------------------------------------------

    public TimeoutStrategy getStrategy() {
        return this.strategy;
    }

    public int getDuration() {
        return this.duration;
    }
}
